<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Html_helper {

	public function select($items, $default = '') {
		$html = '';
		foreach ($items as $k => $v) {
			$selected = ("$k" === $default) ? ' selected="selected"' : '';
			$html .= "<option value=\"{$k}\"{$selected}>{$v}</option>";
		}
		return $html;
	}

}
